import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
      path:'/',
      redirect:'/home'
    },
  {
    path: '/',
    name: 'Message',
    component: () => import('../views/Message.vue')
  },
  {
    path: '/found',
    name: 'Found',
    component: () => import('../views/Found.vue')
  },
  {
    path: '/cat',
    name: 'Cat',
    component: () => import('../views/Cat.vue')
  },
  {
    path: '/message',
    name: 'Message',
    component: () => import('../views/Message.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/Home.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
